import request from '@/utils/request'

// 生成练习题目
export function generateQuestions(data) {
  return request.post('/front/practice/generate', data)
}

// 提交答案
export function submitAnswers(data) {
  return request.post('/front/practice/submit', data)
}

// 获取练习历史
export function getPracticeHistory(params) {
  return request.get('/front/practice/history', params)
}

// 获取用户统计数据
export function getUserStats() {
  return request.get('/front/practice/stats')
}

// 获取AI分析
export function getAIAnalysis(data) {
  return request.post('/front/practice/ai-analysis', data)
}